export type OptionType = {
  value: string
  text: string
}

export type QuestionRadioPropsType = {
  title?: string
  isVertical?: boolean
  options?: OptionType[]
  defaultValue?: string

  onChange?: (newProps: QuestionRadioPropsType) => void
  disabled?: boolean
}

export interface QuestionStatPropsType {
  stat: Array<{ name: string; count: number }>
}

export const QuestionRadioDefaultProps: QuestionRadioPropsType = {
  title: '单选标题',
  isVertical: false,
  options: [
    {
      value: 'item1',
      text: '选项 1',
    },
    {
      value: 'item2',
      text: '选项 2',
    },
    {
      value: 'item3',
      text: '选项 3',
    },
  ],
  defaultValue: '',
}
